package com.wangfugui.apprentice.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

/**
 * (Buy)表实体类
 *
 * @author makejava
 * @since 2025-06-12 11:02:15
 */
@Data
@TableName("t_buy")
public class Buy {
    @TableId(type = IdType.AUTO)
    private Integer id;
    //物料编码
    private String code;
    //采购数量
    private Integer number;
    //价格
    private Double price;
    //订购时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
